package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @description: 远程调用member服务
 * @title: MemberFeignService
 * @Author FangDaDa
 * @Date: 2021/8/25 21:10
 * @Version 1.0
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    /**
     * @Author FangDaDa
     * @Description 查询当前用户的全部收货地址
     * @Date 21:11 2021/8/25
     * @Param [memberId]
     * @return java.util.List<com.atguigu.gulimall.order.vo.MemberAddressVo>
     **/
    @GetMapping(value = "/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);

}
